package day02;

public class Demo06 {
    public static void main(String[] args) {
        /*String str = "3,谢谢,33222,武汉";
        String[] content = str.split(",");
        System.out.println(content[2]);
        System.out.println(content[3]);*/


        String str = "3,谢谢,,33222,武汉,,,,,,,,,";
        String[] content = str.split(",");
        System.out.println(content[1]);
        System.out.println(content[2]);
        System.out.println(content[3]);
        System.out.println(content.length);

    }
}
